package com.vladium.utils;

// ----------------------------------------------------------------------------
/**
 * A shell pseudo-node implementation for a non-array class.
 * 
 * @author (C) <a
 *         href="http://www.javaworld.com/columns/jw-qna-index.shtml">Vlad
 *         Roubtsov</a>, 2003
 */
final class ObjectShellProfileNode extends AbstractShellProfileNode
{
	// public: ................................................................
	public String name()
	{
		return "<shell: " + m_primitiveFieldCount + " prim/" + m_refFieldCount + " ref fields>";
	}

	@Override
	public int getModifiers()
	{
		return m_modifiers;
	}

	// protected: .............................................................
	// package: ...............................................................
	ObjectShellProfileNode( final IObjectProfileNode parent, final int primitiveFieldCount,
			final int refFieldCount )
	{
		super( parent );
		m_primitiveFieldCount = primitiveFieldCount;
		m_refFieldCount = refFieldCount;
	}

	// private: ...............................................................
	private final int m_primitiveFieldCount, m_refFieldCount;
	int m_modifiers;
} // end of class
// ----------------------------------------------------------------------------
